package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlp
 * @since 2022-01-02
 */
@TableName("t_permission")
public class Permission extends Model<Permission> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
                private String name;
                private String resource;
                private Integer state;
    @TableField("menu_id")
                private Long menuId;
                private String sn;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public String getName(){
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public String getResource(){
            return resource;
            }

        public void setResource(String resource) {
            this.resource = resource;
            }

    public Integer getState(){
            return state;
            }

        public void setState(Integer state) {
            this.state = state;
            }

    public Long getMenuId(){
            return menuId;
            }

        public void setMenuId(Long menuId) {
            this.menuId = menuId;
            }

    public String getSn(){
            return sn;
            }

        public void setSn(String sn) {
            this.sn = sn;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "Permission{" +
                ", id=" + id +
                ", name=" + name +
                ", resource=" + resource +
                ", state=" + state +
                ", menuId=" + menuId +
                ", sn=" + sn +
        "}";
        }
        }
